@ECHO OFF
SETLOCAL

"%SystemRoot%\System32\chcp.com" 65001 > NUL

SET CURRENT_DIR=%~dp0
SET SOURCE=%CURRENT_DIR%conf\settings.xml
SET TARGET=%USERPROFILE%\.m2\settings.xml

IF EXIST "%TARGET%" (
    REM backup old
    COPY /Y "%TARGET%" "%TARGET%.bak" > NUL
)

COPY /Y "%SOURCE%" "%TARGET%"

PAUSE > NUL
